package com.hunan.api.catv.service.impl.member.white;

import com.hunan.api.catv.dao.BaseDao;
import com.hunan.api.catv.dao.white.MemberWhitelistMapper;
import com.hunan.api.catv.entity.po.MemberWhitelist;
import com.hunan.api.catv.entity.vo.MemberWhitelistVo;
import com.hunan.api.catv.service.impl.CommonService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author: wangchao
 * @Date: 2020/11/12 17:52
 */
@Service
public class MemberWhiteService extends CommonService<MemberWhitelist, MemberWhitelistVo, Integer> {

    @Autowired
    MemberWhitelistMapper memberWhitelistMapper;

    @Override
    public BaseDao<MemberWhitelist, MemberWhitelistVo, Integer> getBaseDao() {
        return memberWhitelistMapper;
    }

    public List<MemberWhitelistVo> getMemberWhiteList(MemberWhitelistVo memberWhitelistVo) {
        return memberWhitelistMapper.getMemberWhiteList(memberWhitelistVo);
    }
}
